← Back to issue list

Crystal projects don't properly install and build due to "pull" copying lib/ and bin/ folders from host

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1936671
Type
issue
State
open
Author
~koffeinfrei
Labels
craft-414
Created
2021-07-16 14:42:23.074015+00:00
Updated
2022-08-05 22:38:32.805279+00:00
Closed

Current evaluation

No evaluation has been recorded for this issue yet.

Issue body

The initial error i got was: `Failed to copy 'libevent-2.1.so.7': no such file or directory.` This error occurs because the lib on the host system doesn't match the version on the snap's multipass instance. `shards install` doesn't update the lib/ and bin/ folder on the multipass instance, which leads to a stale build. My current workaround is to delete the two folders on "pull" to ensure that the shards are built on the multipass instance: ``` override-pull: | snapcraftctl pull rm -rf $SNAPCRAFT_PART_SRC/lib $SNAPCRAFT_PART_SRC/bin ``` I'm not sure if this issue is specific to Crystal, or if the behaviour is fundamentally problematic, and built files from the host shouldn't be copied over at all. Potentially `.gitignore` could be considered. If the issue is specific to Crystal we could add the delete command or something similar to https://github.com/snapcore/snapcraft/blob/master/snapcraft/plugins/v1/crystal.py#L92.

Evaluation history

No evaluation history available.